package com.zbzbzzz.aspect;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;

/**
 * @Author ：zbzbzzz
 * @Date ：Created in 12:05 2021/3/3
 * @Description：_____
 * @Modified By：
 * @Version: X.X
 */
@Aspect
@Component
public class testAspect {
	@Around(value = "execution(* com.zbzbzzz.pojo.*.*(..))")
	public Object log(ProceedingJoinPoint joinPoint) throws Throwable {
		System.out.println("start log:" + joinPoint.getSignature().getName());
		Object object = joinPoint.proceed();
		System.out.println("end log:" + joinPoint.getSignature().getName());
		return object;
	}
}
